package com.zhipu.balance.mobile.event.upgrade;

import com.raizlabs.android.dbflow.annotation.Migration;
import com.raizlabs.android.dbflow.sql.SQLiteType;
import com.raizlabs.android.dbflow.sql.migration.AlterTableMigration;
import com.zhipu.balance.mobile.DBManager;
import com.zhipu.balance.mobile.event.RecordRice;
import com.zhipu.balance.mobile.event.RecordRice_Table;

@Migration(version = 5, database = DBManager.class)
public class RecordRice1 extends AlterTableMigration<RecordRice> {


    public RecordRice1(Class<RecordRice> table) {
        super(table);
    }


    @Override
    public void onPreMigrate() {
        super.onPreMigrate();
        addColumn(SQLiteType.TEXT, RecordRice_Table.deviceId.getNameAlias().name());
    }
}